import request from "@/utils/request";

/**
 * @description 获取直播列表
 * @param params
 * @returns {Promise}
 */
export function getLiveAllList(params) {
    return request({
        url: '/getLiveAllList',
        method: 'GET',
        params
    })
}
/**
 * @description 根据房间号获取带岗信息
 * @param params
 * @returns {Promise}
 */
export function getLivePostList(params) {
    return request({
        url: '/getLivePostList',
        method: 'GET',
        params
    })
}
/**
 * @description 根据房间号获取详情
 * @param params
 * @returns {Promise}
 */
export function getLiveByRoom(params) {
    return request({
        url: '/getLiveByRoom',
        method: 'GET',
        params
    })
}

/**
 * @description 根据房间号获取已结束直播详情
 * @param params
 * @returns {Promise}
 */
export function getEndLiveApi(params) {
    return request({
        url: '/getEndLive',
        method: 'GET',
        params
    })
}

/**
 * @description 获取直播预告列表
 * @param params
 * @returns {*}
 */
export function livePortendList(params){
    return request({
        url:'/livePortendList',
        method:'GET',
        params
    })
}

/**
 * 获取直播预告详情
 * @param params
 * @returns {*}
 */
export function livePortendDetailed(params){
    return request({
        url:'/livePortendDetailed',
        method:'GET',
        params
    })
}
